<?php 

Core_Logs::log( 'keyenew', 'log', 'remote_addr: ' . $_SERVER['REMOTE_ADDR'] );
Core_Logs::log( 'keyenew', 'log', 'url: ' . $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] );
if( $this->e ) {
	Core_Logs::log( 'keyenew', 'log', 'msg: ' . $this->e->getMessage() );
	Core_Logs::log( 'keyenew', 'log', 'code: ' . $this->e->getCode() );
	Core_Logs::log( 'keyenew', 'log', 'file: ' . $this->e->getFile() );
	Core_Logs::log( 'keyenew', 'log', 'line: ' . $this->e->getLine() );
	Core_Logs::log( 'keyenew', 'log', 'trace: ' . $this->e->getTraceAsString() );
}

echo '<div style="color: red;"> <h1>APP ERROR</h1>';
	echo '<b>ref:</b> '.$_SERVER['REMOTE_ADDR'].'<hr />';
	echo '<b>url:</b> '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'<hr />';
	if( $this->e ) {
		echo '<b>error msg:</b> '.$this->e->getMessage().'<hr />';
		echo '<b>error code:</b> '.$this->e->getCode().'<hr />';
		echo '<b>error in file:</b> '.$this->e->getFile().'<hr />';
		echo '<b>error line:</b> '.$this->e->getLine().'<hr />';
		echo '<b>error trace:</b> '.$this->e->getTraceAsString().'';
	}
echo '</div>';
?>